package com.lzc.tlmail.tlmailsearch.feign;

import com.lzc.common.utils.R;
import com.lzc.tlmail.tlmailsearch.vo.BrandVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author lzc
 * @create 2020-10-07 20:27
 */
@FeignClient("product-service")
public interface ProductFeignService {


    @GetMapping("/product/attr/info/{attrId}")
    public R attrinfo(@PathVariable("attrId") Long attrId);


    @GetMapping("/product/brand/brands")
    public List<BrandVo> getBrandsByBrandsId(@RequestParam List<Long> brandsId);
}
